package com.ll.wechat.base.utils.widget;

import com.ll.wechat.R;

import android.content.Context;
import android.view.ActionProvider;
import android.view.SubMenu;
import android.view.View;

/**
 * 主页面ActionBar中的添加按钮下拉菜单
 * 
 * @ClassName: MenuMainActionAdd
 * @author yeliangliang
 * @date 2015-7-29 下午5:22:01
 */
public class MenuMainActionAdd extends ActionProvider {

	public MenuMainActionAdd(Context context) {
		super(context);
	}

	@Override
	public View onCreateActionView() {
		return null;
	}

	@Override
	public void onPrepareSubMenu(SubMenu subMenu) {
		super.onPrepareSubMenu(subMenu);
		subMenu.clear();
		subMenu.add("备注").setIcon(R.drawable.icon_info_beizhu);
		subMenu.add("标为星标朋友").setIcon(R.drawable.icon_info_xing);
		subMenu.add("设置朋友圈权限").setIcon(R.drawable.icon_info_quanxian);
		subMenu.add("发送该名片").setIcon(R.drawable.icon_info_share);
		subMenu.add("举报").setIcon(R.drawable.icon_info_jubao);
		subMenu.add("加入黑名单").setIcon(R.drawable.icon_info_hei);
		subMenu.add("删除").setIcon(R.drawable.icon_info_delete);
	}

	@Override
	public boolean hasSubMenu() {
		return true;
	}

}
